package com.zpark.wxshop.mapper;

import com.zpark.wxshop.Vo.CartVo;
import com.zpark.wxshop.entity.Cart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author PJone
 * @since 2023-09-04
 */
public interface CartMapper extends BaseMapper<Cart> {

    List<CartVo> SelectByUid(@Param("uid") Integer uid);

    List<Integer> SelectShopIdInCart(@Param("uid") Integer uid);

    List<CartVo> SelectByCids(@Param("cids") List<Integer> cids);

    List<Integer> SelectShopIdInCheckCart(@Param("cids") List<Integer> cids);

}
